package com.yang.provider.controller;

import com.yang.provider.service.ProductService;
import com.yang.common.dto.ResultVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：YangRan
 * @date ：Created in 2021/10/31 17:23
 * @description：商品控制层
 * @modified By：
 * @version: 1.0
 */
@RequestMapping("/product")
@RestController
@Slf4j
public class ProductController {

    @Autowired
    ProductService productService;


    @RequestMapping("/queryProduct/{id}")
    public ResultVO queryProductById(@PathVariable("id")Long id) {
        //return contentService.search(keyword, pageNo, pageSize);
        return productService.queryDetail(id);
    }


}
